#-------------------------------------------------------------------
# This file is part of the CMake build system for ogre-7z 
# (7zip (LZMA) archives support for Ogre 3D)
#-------------------------------------------------------------------

# Customise what to build
option (SETUP_OGRE_7ZIP_BUILD_DEMO "Build Ogre7zip Demo Application" TRUE)
option (SETUP_USE_BUILTIN_7ZIP_LIBRARY "Use build-in 7zip library for plugin" TRUE)

# setup 7zip
if (NOT SETUP_USE_BUILTIN_7ZIP_LIBRARY)
	set (7ZIP_INCLUDE_DIR "NOTFOUND" CACHE PATH "The path to 7zip header to use")
	set (7ZIP_LIBRARY_DBG "NOTFOUND" CACHE PATH "7zip debug library to use")
	set (7ZIP_LIBRARY_FWK "NOTFOUND" CACHE PATH "7zip library to use")
	set (7ZIP_LIBRARY_REL "NOTFOUND" CACHE PATH "7zip library to use")
	
	if (7ZIP_INCLUDE_DIR STREQUAL "NOTFOUND")
		message (FATAL_ERROR "Failed to find 7zip instalation. Abort processing.")
	endif (7ZIP_INCLUDE_DIR STREQUAL "NOTFOUND")
endif (NOT SETUP_USE_BUILTIN_7ZIP_LIBRARY)

